export default {
  namespaced: true,
  state: {
    orders: [],
    nowOrder: {
      code: '1599730791821', // 订单编号
      items: [], //
      contact: {},
      price: 100
    }
  },
  mutations: {
    setOrder (state, order) {
      state.nowOrder = order
    },
    setNowOrderContact (state, contact) {
      // 切换当前订单的联系人
      state.nowOrder.contact = contact
    }
  },
  actions: {}
}
